<?php
mysql_connect("localhost", "kounkhme_kks2", "Puthea012") or die(mysql_error());
mysql_select_db("kounkhme_kks") or die(mysql_error());

$id = $_GET['drop_var'];
$result = mysql_query("SELECT * FROM jos_flight_destination WHERE type='$id'") 
	or die(mysql_error());
	echo '<select name="destination" id="destination">
	      <option value=" " disabled="disabled" selected="selected">Destination</option>';

		   while($drop_2 = mysql_fetch_array( $result )) 
			{
			  echo '<option value="'.$drop_2['id'].'">'.$drop_2['location_name'].'</option>';
			}
	
	echo '</select> ';
?>